Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 2 - Core Printing Features / Core Printing Features Reference
Functions / Obtaining Information on Printing-Related Objects


GXGetJobFormat

You can use the GXGetJobFormat function to obtain the format objects associated with a job object.

gxFormat GXGetJobFormat (gxJob aJob, long whichFormat);
aJob
A reference to the job object whose format object you wish to obtain.
whichFormat
The index of the format object to retrieve.
function result
A reference to a format object.
DESCRIPTION
The GXGetJobFormat function allows you to obtain a format object from the job object specified in the aJob parameter. The whichFormat parameter specifies the format object to return. You can set this parameter to 1 to obtain the default format. The default format is defined by the formatting printer.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
SEE ALSO
Listing 2-5 on page 2-21 and Listing 2-6 on page 2-23 show how to use the GXGetJobFormat function to obtain the default format when a user wants to print a document.

Manipulating format objects is described in the chapter "Page Formatting and Dialog Box Customization" in this book.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help